import loguru
from flask import jsonify

from Common import *


@app.route("/DetectApi/Getter/GetModelSavePath", methods=["POST"])
def get_model_save_path():
    return common_save_path


@app.route("/DetectApi/Getter/GetAllDetectors", methods=["POST"])
def get_all_detectors():
    return jsonify({"detectors": get_all_detector()})
